//
//  ItemsTableViewCell.m
//  ZYShang
//
//  Created by wangguangming on 15/8/10.
//  Copyright © 2015年 Amber. All rights reserved.
//

#import "ItemsTableViewCell.h"

@implementation ItemsTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
        {
        [self addallviews];
        }
    return self;
}
-(void)addallviews
{
    self.oidLaber=[[UILabel alloc] initWithFrame:CGRectMake(5, 5, WIDTH/2, 50)];
    self.typeLaber=[[UILabel alloc] initWithFrame:CGRectMake(WIDTH-95, 10, 90, 40)];
    self.typeLaber.textAlignment=NSTextAlignmentRight;
    self.addressLaber=[[UILabel alloc] initWithFrame:CGRectMake(5, 55, WIDTH, 30)];
    self.payLaber=[[UILabel alloc] initWithFrame:CGRectMake(5, 85, WIDTH*2.3, 30)];
    self.phoneLaber=[[UILabel alloc] initWithFrame:CGRectMake(5, 115, WIDTH/2, 40)];
    self.beginLaber=[[UILabel alloc] initWithFrame:CGRectMake(5, 155, WIDTH, 30)];
    UILabel *l=[[UILabel alloc] initWithFrame:CGRectMake(0, 185, WIDTH, 5)];
    l.backgroundColor=COLOR;
    [self addSubview:l];
    self.oidLaber.textColor=[UIColor redColor];
    self.typeLaber.textColor=[UIColor grayColor];
    self.addressLaber.textColor=[UIColor grayColor];
    self.payLaber.textColor=[UIColor redColor];
    self.phoneLaber.textColor=BLUECOLOL;
    self.beginLaber.textColor=[UIColor grayColor];
    [self addSubview:self.oidLaber];
    [self addSubview:self.typeLaber];
    [self addSubview:self.addressLaber];
    [self addSubview:self.payLaber];
    [self addSubview:self.phoneLaber];
    [self addSubview:self.beginLaber];
    
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
